﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cow.Module
{
    public class Definition
    {
        /// <summary>
        /// 必须
        /// </summary>
        [CellInfo(CellIndex = 1, Description = "必须")]
        public bool IsRequired { get; set; }
        /// <summary>
        /// 标签
        /// </summary>
        [CellInfo(CellIndex = 2, Description = "标签")]
        public String Label { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [CellInfo(CellIndex = 3, Description = "描述")]
        public String Remark { get; set; }
        /// <summary>
        /// 属性名
        /// </summary>
        [CellInfo(CellIndex = 4, Description = "属性名")]
        public String Property { get; set; }
        /// <summary>
        /// 数据类型
        /// </summary>
        [CellInfo(CellIndex = 5, Description = "数据类型")]
        public String DataType { get; set; }
        /// <summary>
        /// 长度
        /// </summary>
        [CellInfo(CellIndex = 6, Description = "长度")]
        public String Length { get; set; }
        /// <summary>
        /// 空值
        /// </summary>
        [CellInfo(CellIndex = 7, Description = "空值")]
        public bool IsNull { get; set; }
        /// <summary>
        /// PK
        /// </summary>
        [CellInfo(CellIndex = 8, Description = "PK")]
        public bool IsKey { get; set; }
        /// <summary>
        /// FK
        /// </summary>
        [CellInfo(CellIndex = 9, Description = "FK")]
        public bool IsFKey { get; set; }
        /// <summary>
        /// UK
        /// </summary>
        [CellInfo(CellIndex = 10, Description = "UK")]
        public bool IsUFKey { get; set; }
        /// <summary>
        /// 默认值
        /// </summary>
        [CellInfo(CellIndex = 11, Description = "默认值")]
        public String DefaultValue { get; set; }


        /// <summary>
        /// 表单
        /// </summary>
        [CellInfo(CellIndex = 12, Description = "表单")]
        public Boolean IsList { get; set; }
        /// <summary>
        /// 读写
        /// </summary>
        [CellInfo(CellIndex = 13, Description = "读写")]
        public Boolean ReadWrite { get; set; }
        /// <summary>
        /// 控件
        /// </summary>
        [CellInfo(CellIndex = 14, Description = "控件")]
        public String Control { get; set; }
        /// <summary>
        /// 字长
        /// </summary>
        [CellInfo(CellIndex = 15, Description = "字长")]
        public String Size { get; set; }
        /// <summary>
        /// 格式化
        /// </summary>
        [CellInfo(CellIndex = 16, Description = "格式化")]
        public String FormatString { get; set; }
        /// <summary>
        /// 列头
        /// </summary>
        [CellInfo(CellIndex = 17, Description = "列头")]
        public bool IsHeader { get; set; }
        /// <summary>
        /// 布局
        /// </summary>
        [CellInfo(CellIndex = 18, Description = "布局")]
        public bool IsLayout { get; set; }
        /// <summary>
        /// 范围起
        /// </summary>
        [CellInfo(CellIndex = 15, Description = "范围起")]
        public String MinValue { get; set; }
        /// <summary>
        /// 范围止
        /// </summary>
        [CellInfo(CellIndex = 16, Description = "范围止")]
        public String MaxValue { get; set; }
        /// <summary>
        /// 范围警告信息
        /// </summary>
        [CellInfo(CellIndex = 17, Description = "范围警告信息")]
        public String ErrorValue { get; set; }
        /// <summary>
        /// 正则表达式
        /// </summary>
        [CellInfo(CellIndex = 18, Description = "正则表达式")]
        public String RegExp { get; set; }
    }
}
